package com.ljq.ioc.model;

import com.ljq.ioc.annotation.Autowired;
import com.ljq.ioc.annotation.Component;

@Component
public class B {

    @Autowired
    private C c;

    public void print(){
        System.out.println("B的方法");
    }

    public void Cmethod(){
        c.print();
    }
}
